<template>
  <div class="section-search">
    <div class="left-view">
      <div class="tabs">
        <div class="common-menu-list">
          <div
            class="menu-item"
            @click="changeTab(idx)"
            :class="{ selected: selected === idx }"
            v-for="(item, idx) in tabList"
            :key="idx"
          >
            {{ item }}
          </div>
        </div>
      </div>
      <!-- <div class="right-item item-input">
        <input
          type="text"
          placeholder="Please enter keywords to search"
          class="ellipsis"
        />
        <div class="common-button button-primary button-44">
          <img src="/img/icon-search.eaf98785.svg" />
        </div>
      </div> -->
    </div>
    <div class="space"></div>
    <!-- <div class="right-view">
      <div class="common-dropdown-list popover-countdown-list right-item">
        <div class="v-popover">
          <div class="trigger" style="display: inline-block">
            <div class="dropdown-trigger">
              <a class="common-button order-item-inner"> ALL NFT </a>
            </div>
          </div>
        </div>
      </div>
      <div class="right-item common-dropdown-list popover-countdown-list">
        <div class="v-popover">
          <div class="trigger" style="display: inline-block">
            <div class="dropdown-trigger">
              <a class="common-button order-item-inner">Latest Bid</a>
            </div>
          </div>
        </div>
      </div>
      <div class="right-item item-input">
        <input
          type="text"
          placeholder="Please enter keywords to search"
          class="ellipsis"
        /><a class="common-button button-primary button-44">
          <img src="/img/icon-search.eaf98785.svg" />
        </a>
      </div>
    </div> -->
  </div>
</template>
<script>
export default {
  props: {},
  data: () => ({
    selected: 0,
    url: require("@/assets/images/blindBox/banner1.png"),
    tabList: ["Auction", "Market"],
  }),
  methods: {
    changeTab(idx) {
      this.selected = idx;
    },
  },
};
</script>
<style  lang="scss" scoped>
.section-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  .left-view {
    .tabs {
    }
  }
  .common-menu-list {
    border-radius: 12px;
    font-size: 16px;
    height: 44px;
    text-align: center;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: auto;
    background-color: #f7f7f7;
    -webkit-box-shadow: 0 6px 12px 0 rgb(0 0 0 / 6%);
    box-shadow: 0 6px 12px 0 rgb(0 0 0 / 6%);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    @media screen and (min-width: 300px) and (max-width: 960px) {
      height: 40px;
      font-size: 14px;
    }
    .menu-item {
      position: relative;
      cursor: pointer;
      color: #694f4e;
      -webkit-transition: color 0.2s ease;
      transition: color 0.2s ease;
      white-space: nowrap;
      min-width: 100px;
      height: 100%;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
      padding: 0 20px;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      border-radius: 12px;
      font-weight: 700;
    }
    .selected {
      color: #431216;
      background: #fad551;
    }
  }
}
</style>